# -*- coding: utf-8 -*-
# created on 2017/3/6

from mathsolver.functions.base.base import BaseValue
from mathsolver.functions.base.objects import _BaseEqs, BaseSymbolValue


class BaseComplexValue(BaseSymbolValue):
    """复数变量"""

    def __init__(self, value):
        super(BaseComplexValue, self).__init__(value)
        new_value = {}
        for key, item in value.items():
            new_value[key] = item
        self.value = new_value

    def sympify(self):
        """ 输出sympy格式 """
        return self.value


class BaseComplexEqs(_BaseEqs):
    """复数方程组"""
    pass


class BaseComplex(BaseValue):
    pass
